package cn.csc.module.shoppingCard.controller.admin.card.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static cn.csc.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 购物卡主表 Excel VO
 *
 * @author liuchuang
 */
@Data
public class CardExcelVO {

    @ExcelProperty("主键id")
    private String id;

    /**
     * 项目ID
     */
    @ExcelProperty("项目ID")
    private String projectId;

    /**
     * 卡号
     */
    @ExcelProperty("卡号")
    private String cardNumber;

    @ExcelProperty("绑定的用户ID")
    private String userId;

    @ExcelProperty("用户手机号")
    private String userPhone;

    /**
     * 面值
     */
    @ExcelProperty("面值")
    private BigDecimal faceValue;

    @ExcelProperty("当前余额")
    private BigDecimal balance;

    @ExcelProperty("使用限制")
    private String restriction;

    @ExcelProperty("状态")
    private Byte status;

    @ExcelProperty("激活密码")
    private String password;

    @ExcelProperty("有效期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime expireTime;

    @ExcelProperty("发卡（激活）时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime activatedAt;

    @ExcelProperty("创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime createTime;

}
